package com.hy.z.result;

public enum ResultEnum implements ReInter {
    /**
     * 返回的枚举类
     */
    success(200, "success"),
    serverError(500, "error"),
    user_not_add_permission(999, "用户未配置权限,请联系管理员"),
    user_not_login(1000, "登陆时间已过期请重新登陆!");

    private final int code;
    private final String msg;

    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int code() {
        return code;
    }

    @Override
    public String msg() {
        return msg;
    }
}
